package com.jm.statistics.controller;

import com.jm.common.result.Result;
import com.jm.order.client.OrderFeignClient;
import com.jm.vo.order.OrderCountQueryVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/admin/statistics")
public class StatisticsController {
    @Resource
    private OrderFeignClient orderFeignClient;

    @GetMapping("getCountMap")
    public Result getCountMap(OrderCountQueryVo orderCountQueryVo){
        return Result.ok(orderFeignClient.getCountMap(orderCountQueryVo));
    }
}
